﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApplication9.Models;

namespace WebApplication9.Controllers
{
    public class HomeController : Controller

    {
        

        Kitchen one = new Kitchen()
        {
            chore = "Clean up dishes, pots and pans after every meal",
            type = "kitchen"
        };
        Kitchen two = new Kitchen()
        {
            chore = "Run dishwasher",
            type = "ktichen"
        };
        Kitchen three = new Kitchen()
        {
            chore = "Wipe down kitchen counters, table, and stove top",
            type = "kitchen"
        };
        Kitchen four = new Kitchen()
        {
            chore = "Empty trash can",
            type = "kitchen"
        };
        Kitchen five = new Kitchen()
        {
            chore = "Sweep kitchen floor",
            type = "kitchen"
        };
        Kitchen six = new Kitchen
        {
            chore = "Change out your kitchen towels",
            type = "kitchen"
        };
        Kitchen seven = new Kitchen
        {
            chore = "Wipe up spills",
            type = "kitchen"
        };

        bedroom bone = new bedroom()
        {
            chore = "Make bed",
            type = "bedroom"
        };
        bedroom btwo = new bedroom()
        {
            chore = "Put dirty laundry in laundry baskets, and shoes in closet",
            type = "bedroom"
        };
        bedroom bthree = new bedroom()
        {
            chore = "Put away any clean clothes and laundry on your bed",
            type = "bedroom"
        };
        bedroom bfour = new bedroom()
        {
            chore = "Clear floor of anything that does not belong",
            type = "bedroom"
        };
        bedroom bfive = new bedroom
        {
            chore = "Place toys back in correct bins or containers",
            type = "bedroom"
        };
        bedroom bsix = new bedroom
        {
            chore = "Tell Mom or Dad when you're done and we'll come inspect",
            type = "bedroom"
        };
        public ActionResult Index()
        {
            ViewBag.Message = "All Chores";
            List<chores> allchores = new List<chores>
            {
                one,
                two,
                three,
                four,
                five,
                six,
                seven,
                bone,
                btwo,
                bthree,
                bfour,
                bfive,
                bsix

            };
            return View(allchores);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Kitchen Chores";
           

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "1st Kitchen and Bedroom Chores";
            chores viewModel = new chores();

            return View(viewModel);
        }
    }
}